#define _CRT_SECURE_NO_WARNINGS
#include<string.h>
#include<stdio.h>
int prefixCount(const char** words, int wordsSize, const char* pref) {
        int cnt = 0;
        int len = strlen(pref); 
        printf("%d", len);
        for (int i = 0; i < wordsSize; i++)
        {
            if (strncmp(words[i], pref,len) == NULL)
            {
                cnt++;
            }
        }
        return cnt;
}
int main()
{
     const char* words[4] = { "leetcode", "win", "loops", "success" };
     const char* pref = "code";
     printf("%d",prefixCount(words, 4, pref));
}